package com.ryskoo.catering.productspec.repository;

import com.ryskoo.catering.productspec.domain.ProductSpecPO;
import com.ryskoo.framework.core.repository.IBasicRepository;

import java.util.List;

public interface IProductSpecRepository extends IBasicRepository<ProductSpecPO> {
    /**
     * 根据商品主信息uuid删除规格数据
     * @param mainUuid
     */
    public void deleteByMainUuid(String mainUuid);

    /**
     * 根据商品主信息uuid获取规格集合
     * @param mainUuid
     * @return
     */
    public List<ProductSpecPO> getSpecsByMainUuid(String mainUuid);

    /**
     * 根据商品主信息uuids删除规格数据
     * @param mainUuids
     */
    public void deleteByMainUuids(List<String> mainUuids);
}
